package com.base.cn.platform.os.service.exam.count;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.exam.ExamBaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

/**
 * 试卷统计接口
 *
 * @author s.li
 * @create 2018-08-24-9:58
 */
@FeignClient(name = ExamBaseService.appName , configuration = FeignAuthConfig.class)
public interface ExamCountService extends ExamBaseService {

    /**
     * 查询试卷统计数据
     * @return Map<String,Integer>
     */
    @RequestMapping(contextPath + "/queryExamCountNum")
    Map<String,Integer> queryExamCountNum();

    /**
     * 易错考点前 10
     * @return List<QuestionRecordPointCountNum>
     */
    @RequestMapping(contextPath + "/queryQuestionRecordPointCount")
    List<Map<String,Object>> queryQuestionRecordPointCount();

    /**
     * 试卷使用排行 前10
     * @return List<ExamRecordCountNum>
     */
    @RequestMapping(contextPath + "/queryExamRecordCountNum")
    List<Map<String,Object>> queryExamRecordCountNum();
}
